package io.renren.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.dao.SmsLogDao;
import io.renren.entity.SmsLogEntity;
import io.renren.service.SmsLogService;
import org.springframework.stereotype.Service;

@Service("smsLogService")
public class SmsLogServiceImpl extends ServiceImpl<SmsLogDao, SmsLogEntity> implements SmsLogService {


    /***
     * 一分钟之内不能重复发送短信
     * @param phone 手机
     * @return
     */
    @Override
    public SmsLogEntity querySmsCodeByPhone(String phone) {
        return baseMapper.querySmsCodeByPhone(phone);
    }
}
